﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShippingUDF.aspx.cs" Inherits="WMS6.Web.Outbound.ShippingUDF" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>ShippingUDF</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/jquery.blockUI.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

   <base target="_self" /> 
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            var actionID = window.dialogArguments;
            if(actionID != "" && actionID != null)
            {
                //document.getElementById("hdnActionID").value = actionID;
                var array = actionID.split(',');
                initQueryPage(array[0],array[1]);
            }
            else
            {
                initDetailPage();
            }
        }
        
        function windowClose()
        {
        window.returnValue="OK";
            window.close();
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblShippingUDF" runat="server" CssClass="label_header" Text="更新自定义字段" ></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnCancel" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCancel%>"
                            AccessKey="c" OnClientClick="windowClose();" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>"
                            OnClick="btnSave_Click" />
                    </td>                   
                </tr>
            </table>
        </div>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur"  id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">基本信息</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
        </div>
        <div id="div_content">
      
                <asp:GridView ID="gvOrderDetailUdf" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                    CssClass="gridview" DataKeyNames="ORDERID,LINEID,STATUS" Width="1000px" OnRowDataBound="gvOrderDetailUdf_RowDataBound">
                  
                    <FooterStyle CssClass="GridViewFooterStyle" />
                    <RowStyle CssClass="GridViewRowStyle" />
                    <PagerStyle CssClass="GridViewPageStyle" />
                    <HeaderStyle CssClass="GridViewHeaderStyle" />
                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                    <Columns>
                        <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                            <ItemStyle CssClass="GridViewRowWidth_40" />
                        </asp:BoundField>
                        <asp:BoundField DataField="LineID" HeaderText="行号" FooterText="行号" SortExpression="LineID"
                            meta:resourcekey="LineID">
                            <ItemStyle CssClass="GridViewRowWidth_50" />
                        </asp:BoundField>
                        <asp:BoundField DataField="SkuID" HeaderText="货品代码" FooterText="货品代码" SortExpression="SkuID"
                            meta:resourcekey="SkuID">
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:BoundField>
                        <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="SkuDescr"
                            meta:resourcekey="SkuDescr">
                            <ItemTemplate>
                                <asp:Label ID="lblSkuDescr" runat="server" Text='<%# Eval("SkuDescr").ToString() %>'
                                    meta:resourcekey="lblSkuDescr"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_200" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="STATUSD" HeaderText="状态" FooterText="状态" SortExpression="STATUSD"
                            meta:resourcekey="STATUSD">
                            <ItemStyle CssClass="GridViewRowWidth_50" />
                        </asp:BoundField>
                        <asp:TemplateField FooterText="订货数量" HeaderText="订货数量" SortExpression="ORIGINALQTY"
                            meta:resourcekey="ORIGINALQTY">
                            <ItemTemplate>
                                <asp:Label ID="lblORIGINALQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("ORIGINALQTY").ToString()) %>'
                                    meta:resourcekey="lblORIGINALQTY"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="发货数量" HeaderText="发货数量" SortExpression="SHIPPEDQTY"
                            meta:resourcekey="SHIPPEDQTY">
                            <ItemTemplate>
                                <asp:Label ID="lblSHIPPEDQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("SHIPPEDQTY").ToString()) %>'
                                    meta:resourcekey="lblSHIPPEDQTY"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="自定义字段1" HeaderText="自定义字段1" SortExpression="UDF1">
                            <ItemTemplate>
                                <asp:TextBox ID="txtUdf1" CssClass="textbox" runat="server" Width="90px" Text='<%# Eval("UDF1") %>'></asp:TextBox>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="自定义字段2" HeaderText="自定义字段2" SortExpression="UDF2">
                            <ItemTemplate>
                                <asp:TextBox ID="txtUdf2" CssClass="textbox" runat="server" Width="90px" Text='<%# Eval("UDF2") %>'></asp:TextBox>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="备注" HeaderText="备注" SortExpression="REMARK">
                            <ItemTemplate>
                                <asp:TextBox ID="txtRemark" CssClass="textbox" runat="server" Width="90px" Text='<%# Eval("REMARK") %>'></asp:TextBox>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
        
        </div>
       <input id="hdnOrderID" runat="server" type="hidden"></input>
       <input id="hdnFrom" runat="server" type="hidden"></input>
    </div>
    </form>
</body>
</html>
